# -*- mode: snippet -*-
# name : snprintf
# contributor : pxq
# --
snprintf(${1:str}, ${2:size}, "${3:%s}\\n"${3:$(if (string-match "%" text) ", " "\);")
}$4${3:$(if (string-match "%" text) "\);" "")}